/*
 * RunDialog.java
 *
 * Created on 31.05.2012, 17:49:04
 */
package treepro;

import calcsdk.Calcsdk;
import calcsdk.nw.ITreePro;
import java.text.DecimalFormat;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Date;
import javax.swing.JOptionPane;
import javax.swing.SpinnerNumberModel;

/**
 *
 * @author Ivan
 */
public class RunDialog extends javax.swing.JDialog {

    private ITreePro core = null;

    /** Creates new form RunDialog */
    public RunDialog(java.awt.Frame parent, boolean modal, ITreePro core) {
        super(parent, modal);
        this.core = core;
        initComponents();
        jCheckBox2.setVisible(false);
        jSpinner1.setModel(new SpinnerNumberModel(0, 0, 999, 1));
        jSpinner2.setModel(new SpinnerNumberModel(0, 0, 999, 1));
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        jRadioButton1 = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        jRadioButton2 = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jCheckBox1 = new javax.swing.JCheckBox();
        jLabel2 = new javax.swing.JLabel();
        jRadioButton4 = new javax.swing.JRadioButton();
        jRadioButton5 = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        jCheckBox2 = new javax.swing.JCheckBox();
        jCheckBox3 = new javax.swing.JCheckBox();
        jTextField1 = new javax.swing.JTextField();
        jSpinner1 = new javax.swing.JSpinner();
        jSpinner2 = new javax.swing.JSpinner();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jRadioButton6 = new javax.swing.JRadioButton();
        jSeparator2 = new javax.swing.JSeparator();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(treepro.TreeProApp.class).getContext().getResourceMap(RunDialog.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        buttonGroup1.add(jRadioButton1);
        jRadioButton1.setSelected(true);
        jRadioButton1.setText(resourceMap.getString("jRadioButton1.text")); // NOI18N
        jRadioButton1.setName("jRadioButton1"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        buttonGroup1.add(jRadioButton2);
        jRadioButton2.setText(resourceMap.getString("jRadioButton2.text")); // NOI18N
        jRadioButton2.setName("jRadioButton2"); // NOI18N

        buttonGroup1.add(jRadioButton3);
        jRadioButton3.setText(resourceMap.getString("jRadioButton3.text")); // NOI18N
        jRadioButton3.setName("jRadioButton3"); // NOI18N

        jCheckBox1.setSelected(true);
        jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N
        jCheckBox1.setToolTipText(resourceMap.getString("jCheckBox1.toolTipText")); // NOI18N
        jCheckBox1.setName("jCheckBox1"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        buttonGroup2.add(jRadioButton4);
        jRadioButton4.setSelected(true);
        jRadioButton4.setText(resourceMap.getString("jRadioButton4.text")); // NOI18N
        jRadioButton4.setName("jRadioButton4"); // NOI18N

        buttonGroup2.add(jRadioButton5);
        jRadioButton5.setText(resourceMap.getString("jRadioButton5.text")); // NOI18N
        jRadioButton5.setName("jRadioButton5"); // NOI18N

        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jSeparator1.setName("jSeparator1"); // NOI18N

        jCheckBox2.setText(resourceMap.getString("jCheckBox2.text")); // NOI18N
        jCheckBox2.setToolTipText(resourceMap.getString("jCheckBox2.toolTipText")); // NOI18N
        jCheckBox2.setName("jCheckBox2"); // NOI18N

        jCheckBox3.setSelected(true);
        jCheckBox3.setText(resourceMap.getString("jCheckBox3.text")); // NOI18N
        jCheckBox3.setName("jCheckBox3"); // NOI18N

        jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
        jTextField1.setToolTipText(resourceMap.getString("jTextField1.toolTipText")); // NOI18N
        jTextField1.setName("jTextField1"); // NOI18N

        jSpinner1.setToolTipText(resourceMap.getString("jSpinner1.toolTipText")); // NOI18N
        jSpinner1.setName("jSpinner1"); // NOI18N

        jSpinner2.setToolTipText(resourceMap.getString("jSpinner2.toolTipText")); // NOI18N
        jSpinner2.setName("jSpinner2"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
        jTextField2.setToolTipText(resourceMap.getString("jTextField2.toolTipText")); // NOI18N
        jTextField2.setName("jTextField2"); // NOI18N

        jTextField3.setText(resourceMap.getString("jTextField3.text")); // NOI18N
        jTextField3.setToolTipText(resourceMap.getString("jTextField3.toolTipText")); // NOI18N
        jTextField3.setName("jTextField3"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        buttonGroup1.add(jRadioButton6);
        jRadioButton6.setText(resourceMap.getString("jRadioButton6.text")); // NOI18N
        jRadioButton6.setName("jRadioButton6"); // NOI18N

        jSeparator2.setName("jSeparator2"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jRadioButton1)
                            .addComponent(jLabel1)
                            .addComponent(jRadioButton2)
                            .addComponent(jRadioButton3)
                            .addComponent(jRadioButton6)))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton2))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jCheckBox1))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jCheckBox2))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jCheckBox3))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jRadioButton5)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(128, 128, 128)
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(jLabel7)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField3))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jRadioButton4)
                            .addComponent(jLabel2))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jCheckBox1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jCheckBox2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jCheckBox3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButton5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addComponent(jSpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(13, 13, 13))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton2)
                            .addComponent(jButton1))
                        .addContainerGap())))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

        float pathLimit = 0;
        TreeProApp.startNode = 0;
        try {
            pathLimit = Float.parseFloat(jTextField1.getText());
            TreeProApp.startNode = Integer.parseInt(jSpinner1.getValue().toString()) - 1;            
            TreeProApp.avtoMassa = Double.parseDouble(jTextField2.getText());            
            TreeProApp.avtoFreeMassa = Double.parseDouble(jTextField3.getText());            
            int no1 = Integer.parseInt(jSpinner1.getValue().toString());
            int no2 = Integer.parseInt(jSpinner2.getValue().toString());
            if (no1==0)
                jSpinner2.setValue(0);
            //if (no2==0)
              //  jSpinner1.setValue("0");
            
            if (TreeProApp.startNode< -1)
                throw new Exception("Номер начального узла не может быть меньше нуля");
            if (no1>TreeProApp.main.treePanel.getNodesCount())
                throw new Exception("Номер начального узла не может больше количества узлов ("+TreeProApp.main.treePanel.getNodesCount()+")");
            if (no2<0)
                throw new Exception("Номер конечного узла не может быть меньше нуля");
            if (no2>TreeProApp.main.treePanel.getNodesCount())
                throw new Exception("Номер конечного узла не может больше количества узлов ("+TreeProApp.main.treePanel.getNodesCount()+")");
            if (no1!=0&&no2!=0)
                if (TreeProApp.main.treePanel.findByNumber(no1, no2)==null)
                    throw new Exception("Связи между указанными вершинами не существует");
                    
            
            if (pathLimit<0.1)
                throw new Exception("Лимит пути слишком мал!");
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Укажите все ограничения корректно!\n"+e.getLocalizedMessage(), "Ошибка ввода",
                    JOptionPane.ERROR_MESSAGE);
            jTextField1.setText("9999");
            return;
        }
        TreeProApp.resultFrame.areaReport.setText("["+new Date()+"] Подготовка исходных данных...");
        TreeProApp.main.treePanel.clearSolutions();
        if (TreeProApp.resultPaths==null) TreeProApp.resultPaths = new ArrayList<int[]>();
        TreeProApp.resultPaths.clear();
        if (TreeProApp.loopPaths == null) TreeProApp.loopPaths = new ArrayList<BeanLoop>();
        TreeProApp.loopPaths.clear();
        TreeProApp.resultFrame.best_work = Double.POSITIVE_INFINITY;
        TreeProApp.resultFrame.best_work_patch = null;
        
        if (TreeProApp.paths==null) TreeProApp.paths=new ArrayList<int[]>();
        TreeProApp.paths.clear();
        
        float massive[][] = TreeProApp.main.treePanel.getTable();
        int nodMax[] = TreeProApp.main.treePanel.getTableLimits();
        boolean nodSkvoz[] = TreeProApp.main.treePanel.getSkvoz();

        if (jRadioButton1.isSelected())
            TreeProApp.resultFrame.areaReport.append("\n"+jRadioButton1.getText());
        if (jRadioButton2.isSelected())
            TreeProApp.resultFrame.areaReport.append("\n"+jRadioButton2.getText());
        if (jRadioButton3.isSelected())
            TreeProApp.resultFrame.areaReport.append("\n"+jRadioButton3.getText());
        TreeProApp.resultFrame.areaReport.append("\n"+jLabel2.getText()+" ");
        boolean patch = false;
        if (jRadioButton4.isSelected()) {
            patch = true;
            TreeProApp.resultFrame.areaReport.append(jRadioButton4.getText());
        }
        if (jRadioButton5.isSelected()) {
            patch = false;
            TreeProApp.resultFrame.areaReport.append(jRadioButton5.getText());
        }
        if (jRadioButton6.isSelected()) {
            patch = false;
            TreeProApp.calcsdk = new Calcsdk(core, massive, jCheckBox1.isSelected(), patch, (jCheckBox3.isSelected())?Calcsdk.OUT_PRINT_ALL:Calcsdk.OUT_PRINT_NONE, TreeProApp.startNode, Integer.parseInt(jSpinner2.getValue().toString()) - 1, TreeProApp.fileName.getName());
        }
        
        if (jCheckBox1.isSelected())
            TreeProApp.resultFrame.areaReport.append("\n"+jCheckBox1.getText());
        
        
        if (jRadioButton2.isSelected() || jRadioButton1.isSelected()) {
            TreeProApp.calcsdk = new Calcsdk(TreeProApp.main, massive, (jRadioButton1.isSelected()) ? null : nodMax, jCheckBox1.isSelected(), patch, (jCheckBox3.isSelected())?Calcsdk.OUT_PRINT_ALL:Calcsdk.OUT_PRINT_NONE, pathLimit, TreeProApp.startNode, Integer.parseInt(jSpinner2.getValue().toString()) - 1, TreeProApp.fileName.getName(), nodSkvoz);
//            if (jCheckBox2.isSelected()) {
//            } else { 
//            }
        }
        if (jRadioButton3.isSelected()) {
            TreeProApp.calcsdk = new Calcsdk(TreeProApp.main, massive, TreeProApp.fileName.getName());
        }
        
        TreeProApp.resultFrame.areaReport.append("\n"+jLabel3.getText()+pathLimit);
        TreeProApp.resultFrame.areaReport.append("\n"+jLabel4.getText()+jSpinner1.getValue().toString()+" "+jLabel5.getText()+jSpinner2.getValue().toString());
        TreeProApp.resultFrame.areaReport.append("\n"+jLabel6.getText()+TreeProApp.avtoMassa);
        
        TreeProApp.inProcess = true;
        TreeProApp.dateStart = new Date();
        TreeProApp.resultFrame.areaReport.append("\nКоличество доступных процессоров: "+Runtime.getRuntime().availableProcessors());
        
        double maxResMatrix =0;
        for (int i : nodMax) {
            maxResMatrix+=Math.max(1, i);
        }

        DecimalFormat myFormatter = new DecimalFormat("");
        myFormatter.setGroupingSize(3);
        int maxLines=TreeProApp.main.treePanel.getLines().size();
        String output = myFormatter.format(Math.pow(maxResMatrix, maxResMatrix));
        TreeProApp.resultFrame.areaReport.append("\nВсего узлов: "+(int)maxResMatrix+" (настоящих:"+nodMax.length+" / фиктивных:"+((int)(maxResMatrix-nodMax.length))+")");
        TreeProApp.resultFrame.areaReport.append("\nВсего линий: "+maxLines);
        
        // TODO: подумать над максимальным количеством
        TreeProApp.resultFrame.areaReport.append("\nМаксимальное количество матриц для расчета: "+output);
        TreeProApp.resultFrame.areaReport.append("\n["+TreeProApp.dateStart+"] Запуск...");
        
        TreeProApp.resultFrame.toFront();
        //TreeProApp.main.treePanel.findByNumber(TreeProApp.startNode+1).setSolution(true);
                
        setVisible(false);        
        core.start();
        TreeProApp.main.actionMap.get("start_calc").setEnabled(false);
        TreeProApp.main.actionMap.get("file_new").setEnabled(false);
        TreeProApp.main.actionMap.get("file_open").setEnabled(false);
        
        TreeProApp.main.actionMap.get("stop_calc").setEnabled(true);

        
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        this.dispose();
    }//GEN-LAST:event_jButton2ActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JCheckBox jCheckBox2;
    private javax.swing.JCheckBox jCheckBox3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButton4;
    private javax.swing.JRadioButton jRadioButton5;
    private javax.swing.JRadioButton jRadioButton6;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSpinner jSpinner1;
    private javax.swing.JSpinner jSpinner2;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    // End of variables declaration//GEN-END:variables
}
